document.write('<script src="http://www.86sb.com/index/ad?id=188&n=1"></script>');
function tjswt(eve,swt)
{
	var cname = $(eve).attr("attr-id");
	$.ajax({
		url : '/zt/clickswttj',
		type : 'GET',
		data : {
			um:'clickswttj',
			zt:'jj_sbxzr',
			type:1,
			classname:"pc_jj_sbxzr"+cname,
			way : "pc_jj_sbxzr"+cname,
			t: '2037-07-03',
			tt:Math.random(),
			source :  location.href,        
		},
		beforeSend:function(){},
		success:function(){
			if(swt != 1){
			  location.href = $(eve).attr("data-href");
			}else{
				window.open("http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODA0MzY3Ml80NDIzMzZfNDAwNzExMDg2MF8yXw", "_blank", "height=800, width=800, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
				return false; 
			}
		}
	});     
}

$('#tijiaodbdb').click(function () {
	var nums = $("#utelxx").val(), pattern = /^1[3456789]{1}\d{9}$/;
	if (!pattern.test(nums)) {
		alert("请输入正确格式的手机号");
		$("#utelxx").focus();
		return false;
	}
	var names = '';
	if(document.getElementById("uname")){
		var names = $("#uname option:selected").val();
		if (names == "请选择商标所属类别") {
			alert("请选择商标所属类别!");
			$("#uname").focus();
			return false;
		}
	}
	calltel_init(nums, names, "底部浮框获客留言");
	alert("请耐心等待，尚标顾问会马上电话联系您！");
	if(document.getElementById("uname")){
		$("#uname").val("");
	}
	$("#utelxx").val('');
	return false;
});


$(function(){
	var cip ='',cname='',cid = 0,mate_title = $("title").text();
	$.each(returnCitySN,function(name,value) {		
			switch(name){
				case 'cip':cip = value;break;
				case 'cid':cid = value;break;
				case 'cname':cname = value;break;
			}
	});
	
	
	$('.guanbi').on('click', function () {
		$('.guanbi-box').css({
			display: 'none'
		});
	});
	
	$(".send").click(function(){
	var number = $.trim($("#utel").val()),zt=$(this).attr("data-zt");
	if($(this).hasClass("color")){
		
	}else{
		var number = $.trim($("#utel").val());
		if (!/^1[3456789]{1}\d{9}$/i.test(number))
		{
			alert('请输入正确的手机号码');
			$("#utel").focus();
			return false;
		}	
	  
		$.getJSON("/common/sendmsg?tell="+number+"&zt="+zt+"&t="+new Date().getTime(),function(data){	
			alert(data.msg);
			if(data.status==0){				
				$('.send').addClass('color');
			    var aa = 90,set = setInterval(timer, 1000);
			    function timer() {
				   aa--;
				   $('.send').text("剩余"+aa+"s");
				   if (aa == 0) {
					   $('.send').removeClass('color');		  
					   clearInterval(set);
					   $('.send').text('获取验证码');
				   }
			   }
			}			
		 });		  
	}	
});

$("#check_code_sbxzr").click(function(){
	var flag = true,number = $.trim($("#utel").val()),sbname = $.trim($("#sbname").val()),zt=$(this).attr("data-zt");
	
	if(!/^1[3456789]{1}\d{9}$/i.test(number))
	{
		alert('请输入正确的手机号码');
		$("#utel").focus();
		flag = false;
	}else if(sbname.length<1)
	{
		alert('请输入要查询的商标信息');
		$("#sbname").focus();
		flag = false;
	}
	
	if(flag===true){	
		var url = window.location.href,number = $.trim($("#utel").val()),strurl = url.indexOf('jzl_')!='-1'? url.substr(0, url.indexOf('#jzl_')):url;	
			if(!/^1[3456789]{1}\d{9}$/i.test(number))
			{
				alert('请输入正确的手机号码');
				$("#utel").focus();
				return false;
			}
			calltel_init(number,sbname,'商标转让专题');	
			$('.tck').removeClass('block');
        	$('.tjcg').addClass('block');
        	$('zhezhao').removeClass('block');			
	}
	
});

$("#check_code").click(function(){
	var flag = true,number = $.trim($("#utel").val()),sbname = $.trim($("#sbname").val()),zt=$(this).attr("data-zt");
	
	if(!/^1[3456789]{1}\d{9}$/i.test(number))
	{
		alert('请输入正确的手机号码');
		$("#utel").focus();
		flag = false;
	}else if(sbname.length<1)
	{
		alert('请输入要查询的商标信息');
		$("#sbname").focus();
		flag = false;
	}
	
	if(flag===true){	
		var url = window.location.href,number = $.trim($("#utel").val()),strurl = url.indexOf('jzl_')!='-1'? url.substr(0, url.indexOf('#jzl_')):url;	
			if(!/^1[3456789]{1}\d{9}$/i.test(number))
			{
				alert('请输入正确的手机号码');
				$("#utel").focus();
				return false;
			}
			var urls = "/common/calltellinit?m=Backend&c=Sbreg&a=addx&froms=0&sbname="+mate_title+":商标查询("+sbname+")&utel="+number+"&uname="+sbname+"&cip="+cip+"&urlx="+strurl;  
			$.getJSON(urls,function(data){	
				alert(data.msg);					
			});
			 var aa = 2,set = setInterval(timer, 1000);
			function timer() {
			   aa--;					  
			   if (aa == 0) {
					location.href = '/sbseach/list?keys='+sbname+'&zt=Sbreg&phone='+number;
				   clearInterval(set);						  
			   }
		}				
		
	}
	
});

	
	//$('<div class="right_top_box"><div class="xiang_img"><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" class="kf"><img src="http://www.86sb.com/swt/images/kf.gif" alt="尚标商标转让，专利注册" class="gb1" ></a><a class="gban"><img src="http://www.86sb.com/swt/images/gb.png" alt="尚标商标转让，专利注册" class="gb"></a><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" class="sq"><img src="http://www.86sb.com/swt/images/sq.png" alt="尚标商标转让，专利注册"></a></div><div class="sz_box"><ul><li><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" ><span>服务热线</span><div><p>'+isphone+'</p><p>全国服务热线</p></div></a></li><li><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" ><span>APP下载</span><div><img src="http://www.86sb.com/images/rwm2.jpg" alt="尚标商标转让，专利注册" style="float: right"><i style="float: right;margin: 6px 7px 0 0;font-style: normal;">下载尚标APP</i></div></a></li><li><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" ><span>卖商标</span></a></li><li class="tops"><a href="javascript:scroll(0,0);" target="_self" ><span>回到顶部</span></a></li></ul></div></div>').appendTo('body');

	$('<div class="right_top_box" style="height: 380px;"><div class="xiang_img" style=" position: absolute;top: -105px;right: 50px;"><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" class="kf"><img src="http://www.86sb.com/swt/images/kf.gif" alt="尚标商标转让，专利注册" class="gb1" ></a><a class="gban"><img src="http://www.86sb.com/swt/images/gb.png" alt="尚标商标转让，专利注册" class="gb"></a>'+(_AD[188]?'<a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" class="sq"><img src="'+_AD[188][0]['pic']+'" alt="尚标商标转让，专利注册"></a>':'<a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" class="sq"><img src="http://www.86sb.com/swt/images/sq.png" alt="尚标商标转让，专利注册"></a>')+'</div><div class="sz_box"><ul><li><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" ><span>服务热线</span><div class="fir"><p>'+isphone+'</p><p>全国服务热线</p></div></a></li><li><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" ><span>码上咨询</span>\
	<div class="sec"><div class="onecc">\
		<img src="/swt/images/weixin.jpg" alt="尚标商标转让，专利注册" style="float: right;width: 130px;height: 130px;"><i style="font-style: normal;color: #c7a41d;"></i>\
	</div>\</div>\
	</a></li><li><a onclick="toswt();hidecenter();return false;" href="javascript:void(0);" ><span>卖商标</span></a></li><li class="tops"><a href="javascript:scroll(0,0);" target="_self" ><span>回到顶部</span></a></li></ul></div></div>').appendTo('body');

	$('.xiang_img a.gban img.gb').on('click',function(){
		$('.xiang_img .kf').hide();
		$('.xiang_img .gban').hide();
		$('.xiang_img .gban img.gb').addClass('active');
		$('.xiang_img .kf img.gb1').addClass('active');
		$('.xiang_img .sq').show();
		setTimeout(function(){
			$('.xiang_img .sq').addClass('active');
		},100);

	});
	
	$(window).scroll(function() {
        var top = $(document).scrollTop();
        if(top>630){
        	$('.right_top_box').fadeIn();
        }else{
        	$('.right_top_box').fadeOut();
        }
    });

    $('.sz_box ul li.tops').on('click',function(){	
         $(window).scrollTop(0);		
    });
});


// 中间弹出框开始
jQuery(document).ready(function($) {
	 var close=$('.close');
     var consult=$('.consult');
     var wirte=$('.wirte');
     var right=$('.right');

     close.click(function(event) {
        consult.stop().hide()
     });
	 setTimeout(function(){
			consult.show();
		}, 5000);

});

var c_url = c_url=="wwt.86sb.com" ? "wwt.86sb.com:8012":(c_url && c_url!=undefined && c_url!="undefined"?c_url:document.domain);

document.writeln(" <link rel=\"stylesheet\" href=\"http://"+c_url+"/css/baseswt.css\">");
document.writeln(" <link rel=\"stylesheet\" href=\"http://"+c_url+"/css/swt.css?0.0002\">");

if(init_swt==0){
	document.writeln("		<section class=\"show\">");
	document.writeln("		    <div class=\"consult\"  style=\"display:none;\">");
	document.writeln("                <div class=\"pre\">");
	document.writeln("		  	        <input id=\"tell_num\" name=\"tell_num\" onFocus=\"this.value='';\" type=\"tel\" class=\"wirte\" placeholder=\"请输入您的电话号码\" autofocus >");
	document.writeln("                    <input id=\"sub_btn\"  type=\"button\" onClick=\"calltelx()\" class=\"right\" value=\"立即免费通话\">");
	document.writeln("                </div>   	");
	document.writeln("                <a onclick=\"toswt();hidecenter();return false;\" class=\"imgZc\" href=\"javascript:void(0);\" target=\"_self\" > </a> ");
	document.writeln("                <img class=\"close\" src=\"http://img-cdn.86sb.com/newhome/img/swt/close.png\">");
	document.writeln("            </div>");
	document.writeln("		</section>");
}
// document.writeln('<script language="javascript" src="http://chat.86sb.com/JS/LsJS.aspx?siteid=KVF72347570&float=0&lng=cn"></script>');
document.writeln("<script type=\"text/javascript\"  data-lxb-uid=\"10143948\" data-lxb-gid=\"167409\" src=\"http://lxbjs.baidu.com/api/asset/api.js?t=\' + new Date().getTime() + \'\" charset=\"utf-8\"></script>");

function calltelx()
{
    lxb.call(document.getElementById("tell_num").value);
}
$('#sub').click(function() {
	
	var url = window.location.href;
	if(url.indexOf('jzl_')>0){
		var strurl = url.substr(0, url.indexOf('#jzl_'));
	}
	else{
		var strurl = url;
	}
	var urls = "/common/calltellinit";

    if( $("#utelxx").val() == "" )
    {
        alert("请输入手机号码!");
        $("#utelxx").focus();
        return false;
    }
    else
    {
		if (!/^1[3456789]{1}\d{9}$/i.test($("#utelxx").val()))
        {
            alert('请输入正确的手机号码');
            $("#utelxx").focus();
            return false;
        }
    }
    urls = urls+"&sbname=网站底部浮动&utel="+$("#utelxx").val()+"&uname="+$("#utelxx").val()+"&cip="+cip+"&urlx="+strurl;
    $.get(urls, function(msg){});
    alert("请耐心等待，尚标顾问会马上电话联系您！");
    $("#unamex").val('');
    $("#utelx").val('');
    return false;

});

$(function() {

	var img=$('.weixn'),
		$li=$('.conRight li:nth-child(3)'),
		timer=null,
		$conRight=$('.conRight'),
	 	viewHeight = $(window).height(),
	 	$Li1=$('.conRight li:nth-child(2)'),
	 	$Li2=$('.conRight li:nth-child(4)'),
	 	$Li3=$('.conRight li:nth-child(1)');

		timer=setTimeout(function(){

			img.stop().fadeOut(500);

		}, 100)

		$Li1.hover(function() {

			$('.telSnum').stop().slideDown(400);

		}, function() {
			$('.telSnum').stop().slideUp(400);
		});

		$Li2.hover(function() {
			$('.liuyan').stop().show(400);
		}, function() {
			$('.liuyan').stop().hide(400);
		});

		$Li3.hover(function() {
			$('.peopleCon').stop().show(400);
		}, function() {
			$('.peopleCon').stop().hide(400);
		});

		$li.hover(function() {

			clearTimeout(timer);

			img.stop().fadeIn(500);

		}, function() {

			img.stop().fadeOut(500);

		});

		img.hover(function() {

			clearTimeout(timer);

			img.stop().fadeIn(500);

		}, function() {

			clearTimeout(timer);

			img.stop().fadeOut(500);

		});
		var viewHeight = 200;
		$(window).scroll(function(event) {

			var myTop = $(window).scrollTop();
		
			if (myTop>viewHeight) {

				$('.conRight').show(400);

			} else{

				$('.conRight').hide(400);

			};

		});

		$('.conRight li:last-child').click(function(event) {

			$('html,body').stop().animate({'scrollTop':0}, 500);

		});
});

